//
//  JMTempOneViewController.m
//  OC-Sina
//
//  Created by 陈高健 on 15/12/22.
//  Copyright © 2015年 陈高健. All rights reserved.
//

#import "JMTempOneViewController.h"
#import "JMTempTwoViewController.h"

@interface JMTempOneViewController ()

@end

@implementation JMTempOneViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"这是第一个控制器";
    self.view.backgroundColor = [UIColor whiteColor];
}

//点击跳转第二个控制器
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    //设置跳转第二个控制器
    JMTempTwoViewController *twoViewController = [[JMTempTwoViewController alloc]init];
    //跳转
    [self.navigationController pushViewController:twoViewController animated:YES];    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}


@end
